.PHONY: publish consume
all:publish consume

CFLAG= -I../mqthird/include 
LFLAG= -L../mqthird/lib  -lgtest -lprotobuf -lsqlite3 -pthread -lmuduo_net -lmuduo_base -lz

publish: test_publish_client.cpp ../mqcommon/mqProto.pb.cc ../mqcommon/mqlink.pb.cc ../mqthird/include/muduo/proto/codec.cc
	g++ -g -std=c++11 $(CFLAG) $^ -o $@ $(LFLAG)  

consume: test_consume_client.cpp ../mqcommon/mqProto.pb.cc ../mqcommon/mqlink.pb.cc ../mqthird/include/muduo/proto/codec.cc
	g++ -g -std=c++11 $(CFLAG) $^ -o $@ $(LFLAG)  

clean:
	rm -f publish consume
